package com.ericsson.enap.modules.topology.task;

import com.ericsson.common.quartz.task.ManualTask;
import com.ericsson.enap.modules.topology.service.CabTopologySyncService;
import com.ericsson.common.util.LogFileName;
import com.ericsson.common.util.LoggerUtils;
import org.slf4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class CabTopologySyncTask implements ManualTask {

    @Autowired
    private CabTopologySyncService cabTopologySyncService;
    private Logger log = LoggerUtils.Logger(LogFileName.CabTopologySyncJob);
    @Override
    public void execute() {
        log.info("CabTopologySyncTask start");
        cabTopologySyncService.syncTopologyData();
    }
}
